﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cashier.Utils
{
    public class CalculatedResults
    {
        public float Total { get; set; }
        public float DiscountPercents { get; set; }

        public float DiscountValue {
            get
            {
                return Total * DiscountPercents / 100;
            }
        }
        public float VAT {
            get
            {
                return Total * 0.1f;
            }
        }
        public float Charge {
            get {
                return Total - DiscountValue + VAT;
            }
        }
    }
}
